package OoDay04.HemeWork;

public class Dog extends Animal implements Swim{
    public Dog(String name, int age, String color) {
        super(name, age, color);
    }

    @Override
    void eat() {
        System.out.println(name+"在吃骨头");
    }

    @Override
    public void swim() {
        System.out.println(name+"在游泳");
    }

    void lookHome(){
        System.out.println(name+"在看家");
    }
}
